package com.item.server;


import com.item.entities.CommonResult;
import com.item.entities.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



@Component
@FeignClient(value ="CLOUD-PAMANT-SERVICE")
public interface PaymentFeignService {


    @GetMapping(value ="/user/{id}")
    CommonResult<User> getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    String feignTimeout();
}